package com.zzh.controller;

import com.zzh.controller.utils.R;
import com.zzh.service.impl.OrderServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpSession;

/*
 * @Auther : wenrouyue
 * @Date : 2022/3/17-17:34
 */
@RestController
@RequestMapping("/orders")
public class OrderController {
    @Autowired
    private OrderServiceImpl orderService;

    @GetMapping("/buy/{id}")
    public R BuyVideo(@PathVariable Integer id, HttpSession session){
        return orderService.BuyVideo(id,session);
    }
}
